package com.sixth.docker.controller;

import com.alibaba.nacos.shaded.org.checkerframework.checker.units.qual.A;
import com.sixth.core.entity.Dept;
import com.sixth.core.vo.R;
import com.sixth.docker.service.DeptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: sixth-hospital-parent
 * @description:
 * @author: 赵庆龙
 * @create: 2024-08-21 10:26
 **/
@RestController
@RequestMapping("/doctor/dept")
public class DeptController {
    @Autowired
    private DeptService deptService;
    @GetMapping("/selectById/{deptId}")
    public R<Dept> selectById(@PathVariable Long deptId)
    {
        return deptService.selectById(deptId);
    }
}
